package com.jerry.hm.design.pattern.principle.demo2.before;

/**
 * 正方形
 *
 * @author Jerry
 * @since 2025/8/30 15:11
 */
public class Square extends Rectangle {

    @Override
    public void setLength(double length) {
        super.setLength(length);
        super.setWidth(length);
    }

    @Override
    public void setWidth(double width) {
        super.setLength(width);
        super.setWidth(width);
    }
}
